/* 
 * cms，一个基于J2EE架构内容管理系统
 * Copyright © GrayRabbit Co., Ltd. All rights reserved.
 * Department:运营department
 * 更多信息请访问：
 * http://code.google.com/p/gray-rabbit-cms/
 */
package org.grayrabbit.cms.service.plugins;

import java.util.List;

import org.grayrabbit.cms.entity.SurveySubject;
import org.grayrabbit.cms.vo.plugins.SurveySubjectBean;

import org.grayrabbit.dao.util.Page;
import org.grayrabbit.service.GenericService;

/**
 * <b>OperLog</b>的service接口

 * @version 1.0,创建时间: 2011-05-16 16:08:41 
 */
public interface SurveySubjectService extends GenericService {
	/**
	 * 根据主键查询实体
	 * @param subjectId
	 * @return
	 */
	SurveySubject getSurveySubject(String subjectId);
	/**
	 * 批量删除
	 * @param key
	 */
	void delete(String[] key);
	/**
	 * 删除实体
	 * @param surveySubject
	 */
	void delete(SurveySubject surveySubject);
	/**
	 * 保存实体
	 * @param surveySubject
	 */
	void save(SurveySubject surveySubject);
	/**
	 * 根据bean组装统计查询条件(名称参数)
	 * @param surveySubject
	 * @return
	 */
	Page<SurveySubject> getPage(SurveySubjectBean surveySubjectBean);
	/**
	 * 填充分页组件的查询：(名称参数)
	 * @param page
	 * @param surveySubjectBean
	 */
	void list(Page<SurveySubject> page, SurveySubjectBean surveySubjectBean);
	/**
	 * 根据surveyId查询SurveySubject列表
	 * @param voteId
	 * @return
	 */
	List<SurveySubject> findBySurveyId(String surveyId);
	/**
	 * 根据id查找记录列表
	 * @param id
	 * @return
	 */
	List<SurveySubject> findBySubId(String id);
}